package com.balakitbbs.service;

import org.springframework.beans.factory.annotation.Autowired; 
import org.springframework.stereotype.Service;                 
import com.balakitbbs.page.SearchPageUtil;     
import java.util.*;     
import com.balakitbbs.entity.Bala_mainpost_tag;
import com.balakitbbs.dao.Bala_mainpost_tagDaoIF;
   /**
    * bala_mainpost_tag Service类
    */ 
@Service
public class Bala_mainpost_tagService{
@Autowired
private Bala_mainpost_tagDaoIF dao;
	public void addBala_mainpost_tag(Bala_mainpost_tag bala_mainpost_tag){
		dao.addBala_mainpost_tag(bala_mainpost_tag);
	}

	public void delBala_mainpost_tag(String id){
		dao.delBala_mainpost_tag(id);
	}

	public void delBala_mainpost_tagTrue(String id){
		dao.delBala_mainpost_tagTrue(id);
	}

	public void updateBala_mainpost_tag(Bala_mainpost_tag bala_mainpost_tag){
		dao.updateBala_mainpost_tag(bala_mainpost_tag);
	}

	public Bala_mainpost_tag selectBala_mainpost_tagById(String id){
		return dao.selectBala_mainpost_tagByID(id);
	}

	public int selectBala_mainpost_tagCount(){
		return dao.selectBala_mainpost_tagCount();
	}

	public int selectBala_mainpost_tagCountAll(){
		return dao.selectBala_mainpost_tagCountAll();
	}

	public List<Bala_mainpost_tag> selectBala_mainpost_tagsByPage(SearchPageUtil spu){
		return dao.selectBala_mainpost_tagsByPage(spu);
	}

	public int selectBala_mainpost_tagsByPOJOCount(Bala_mainpost_tag bala_mainpost_tag){
		return dao.selectBala_mainpost_tagsByPOJOCount(bala_mainpost_tag);
	}

	public List<Bala_mainpost_tag> selectBala_mainpost_tagsByPOJO(Bala_mainpost_tag bala_mainpost_tag){
		return dao.selectBala_mainpost_tagsByPOJO(bala_mainpost_tag);
	}

	public List<Bala_mainpost_tag> selectBala_mainpost_tagsByPojoPage(SearchPageUtil spu,Bala_mainpost_tag bala_mainpost_tag){
		Map map = new HashMap();
		map.put("spu",spu);
		map.put("pojo",bala_mainpost_tag);
		return dao.selectBala_mainpost_tagsByPojoPage(map);
	}

}

